package com.deram.ctin.serv.search.solr.reporsitory;

import com.deram.ctin.serv.search.entity.solr.bean.SolrCustomsInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.solr.repository.Query;
import org.springframework.data.solr.repository.SolrCrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SolrCustomsInfoDao extends  SolrCrudRepository<SolrCustomsInfo,Long> {


    @Query(fields = {"id","hsCode"})
    Page<SolrCustomsInfo> findByKeywordsLike(String keywords, Pageable pageable);

    List<SolrCustomsInfo> findByEnterId(Long enterId);
}